| 7.3.1 [10] <7.2> Consider the following piece of C code: for (j=2;j<1000;j++) D[j] = D[j-1]+D[j-2]; The MIPS code corresponding to the above fragment is: DADDIU r2,r2,999 loop: L.D f1, -16(f1) L.D f2, -8(f1) ADD.D f3, f1, f2 S.D f3, 0(r1) DADDIU r1, r1, 8 BNE r1, r2, loop Instructions have the following associated latencies (in cycles): How many cycles does it take for all instructions in a single iteration of the above loop to execute? | |
| View Solution | |
| << Back | Next >> |